home *** CD-ROM | disk | FTP | other *** search
Wrap
-- card: 2968 from stack: in -- bmap block id: 5244 -- flags: 4000 -- background id: 2649 -- name: Setup1 ----- HyperTalk script ----- on openCard put Card field 1 of card 2 into card field CountdownText put Card field 1 of card 3 into card field ZeroMessage Put the time into card field TimeNow end openCard on Idle Put the time into card field TimeNow end Idle on incrHour if card field Hours > 11 then put 1 into card field Hours else add 1 to card field Hours end incrHour on decrHour if card field Hours < 2 then put 12 into card field Hours else subtract 1 from card field Hours end decrHour on incrMinute Set numberFormat to "00" if card field Minutes > 58 then put 00 into card field Minutes else add 1 to card field Minutes end incrMinute on decrMinute Set numberFormat to "00" if card field Minutes < 1 then put 59 into card field Minutes else subtract 1 from card field Minutes end decrMinute -- part 4 (field) -- low flags: 01 -- high flags: 0004 -- rect: left=383 top=70 right=96 bottom=491 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 18 -- style flags: 256 -- line height: 24 -- part name: TimeNow -- part 6 (field) -- low flags: 01 -- high flags: 0004 -- rect: left=223 top=127 right=182 bottom=405 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 18 -- style flags: 256 -- line height: 24 -- part name: CountdownText -- part 7 (field) -- low flags: 01 -- high flags: 0004 -- rect: left=224 top=201 right=258 bottom=350 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 18 -- style flags: 256 -- line height: 24 -- part name: ZeroMessage -- part 8 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=28 top=124 right=186 bottom=416 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp go to card 2 end mouseUp -- part 9 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=15 top=194 right=264 bottom=377 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp go to card 3 end mouseUp -- part 10 (button) -- low flags: 00 -- high flags: C006 -- rect: left=317 top=68 right=82 bottom=358 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: AM ----- HyperTalk script ----- on mouseUp Set hilite of card Button AM to true Set hilite of card Button PM to false end mouseUp -- part 11 (button) -- low flags: 00 -- high flags: 8006 -- rect: left=317 top=85 right=99 bottom=358 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: PM ----- HyperTalk script ----- on mouseUp Set hilite of card Button PM to true Set hilite of card Button AM to false end mouseUp -- part 12 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=445 top=201 right=241 bottom=496 -- title width / last selected line: 0 -- icon id / first selected line: 25002 / 25002 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp set scroll of card field HelpText to 0 show card field HelpText end mouseUp -- part 13 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=445 top=149 right=192 bottom=491 -- title width / last selected line: 0 -- icon id / first selected line: 19678 / 19678 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp show card field InfoText end mouseUp -- part 17 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=233 top=95 right=113 bottom=245 -- title width / last selected line: 0 -- icon id / first selected line: 16692 / 16692 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseDown incrHour Repeat while the mouse is down incrHour end repeat end mouseDown -- part 18 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=225 top=69 right=92 bottom=261 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 3 -- text size: 18 -- style flags: 256 -- line height: 24 -- part name: Hours -- part 19 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=263 top=69 right=93 bottom=298 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 18 -- style flags: 256 -- line height: 24 -- part name: Minutes -- part 24 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=247 top=95 right=112 bottom=259 -- title width / last selected line: 0 -- icon id / first selected line: 3584 / 3584 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseDown decrHour Repeat while the mouse is down decrHour end repeat end mouseDown -- part 27 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=268 top=96 right=114 bottom=280 -- title width / last selected line: 0 -- icon id / first selected line: 16692 / 16692 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseDown incrMinute Repeat while the mouse is down incrMinute end repeat end mouseDown -- part 29 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=282 top=96 right=113 bottom=294 -- title width / last selected line: 0 -- icon id / first selected line: 3584 / 3584 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseDown decrMinute Repeat while the mouse is down decrMinute end repeat end mouseDown -- part 15 (field) -- low flags: 81 -- high flags: 2007 -- rect: left=8 top=56 right=273 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: HelpText ----- HyperTalk script ----- on mouseUp hide card field HelpText end mouseUp -- part 14 (field) -- low flags: 81 -- high flags: 0004 -- rect: left=8 top=56 right=274 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 2 -- text size: 18 -- style flags: 0 -- line height: 24 -- part name: InfoText ----- HyperTalk script ----- on mouseUp hide card field InfoText end mouseUp -- part contents for card part 4 ----- text ----- 5:50 PM -- part contents for card part 6 ----- text ----- Countdown to 1988.... -- part contents for card part 7 ----- text ----- HAPPY 1988! -- part contents for card part 14 ----- text ----- Ÿ Chris' Countdown Clock Ÿ ©1987 By Christopher E. Daley GEnie: C.Daley Freeware --- Have Fun! -- part contents for card part 15 ----- text ----- C H R I S ' C O U N T D O W N C L O C K H E L P ============================================= This stack was originally created for a New Years Eve Party I will be going to this December 31st, 1987. We are having a large group (about 120 people) and needed a common countdown clock that everyone would yell "Happy New Year!" at the same time. This is the result .... FIELDS: • Time of Zero Point: This field identifies when the 'clock' will "strike zero". Just like your digital watch, if set to "12:00" AM, it will "strike zero" at 12 midnight. • Countdown Text: The text in this field will be displayed on the screen while the 'clock' is counting down. • Time Zero Message: This text will be displayed when the 'clock' "strikes zero". BUTTONS: • TEST: Clicking this button will display a few seconds of each of the countdown screens. This allows you to see how the clock will look when it it running. When complete, press the mouse button to return to this card. • DO IT! : Clicking this button will start the Countdown Clock. After the 'clock' has started, you MUST press the mouse button to stop the clock display and return to this card. You can return at any time. ===================== ADVANCED TOPICS ====================== • COUNTDOWN CLOCK BACKGROUND: The countdown clock background is stored in Background 2. If you want to change the way the background looks, update Background 2. Use the test button to make sure everything looks good. • TEXT FONT AND ATTRIBUTES: The clock's field attributes (font, size, bold, outline, shadow, etc.) are set from cards #2 (the Countdown Text card) and 3 (the Time Zero Message). The field attributes will be copied to the "clock" screens. You must TEST the clock after changing the field parameters to make sure everything is displayed on the screen correctly. The "TimeLeft" field on card 4 may also be modified, if needed. • SOUND: With 120 screeming friends in the same room as the Mac, no additional sound was needed. You are welcome to add it to the stack script if you wish. ==> I hope you have as much fun using this clock as I had making it! <== Chris Daley GEnie: C.Daley 339 S. 11th Street #5 San Jose, CA 95112 . -- part contents for card part 18 ----- text ----- 12 -- part contents for card part 19 ----- text ----- 00